import request from '@/utils/request.js'

// 登录
export function loginIn(data){
  return request.post('/login',data)
}
// 登出
export function loginOut(data){
  return request.post('/loginOut',data)
}
// 注册

export function registerApi(data){
  return request.post('/addAdmin',data)
}

// 获取管理员详情
export function  getAdminInfoById(id){
  return request.get('/getAdminDetail?id=' + id)
}